package com.qfedu.mapper;


import com.qfedu.pojo.User;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Map;

public interface UserMapper {
    public List<User> findAll();


    public User findById(int id);

    public long findTotalCount();


    public boolean insert(User user);


    public int update(User user);


    public int update(User user, int age);


    public boolean delete(int id);


    public List<User> findByCondition(@Param("name") String name , @Param("pwd") String password);


    public List<User> findByCondition2(Map<String, Object> map);


}
